<?php

/**
 * 单元测试范例
 */
// 访问地址：http://192.168.33.10/CI/index.php/TestingController/index
function sum($a,$b){
	return $a+$b;
}


class _Demo3 extends CI_Controller {
	public function __construct(){
		parent::__construct();
		$this->load->library("unit_test");
	}
	
	public function index(){
		$this->unit->run(sum(4,3),7,"test sum function");
		$this->unit->run(sum(4,3), 'is_string');
		$this->load->view('_demo3');
	}
	
	
}